package com.xxh.springclouddemo.consumer.controller;

import com.xxh.springclouddemo.consumer.interfaceApi.SleuthProviderApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author xxh
 * @Date 2024/4/24 21:27
 */
@RestController
public class SleuthController {


    @Autowired
    private SleuthProviderApi sleuthProviderApi;

    @RequestMapping("/getport")
    public String getport(){

       return sleuthProviderApi.getProvider();


    }
}
